//
// Created by jan on 12/1/20.
//

#ifndef OPUS_STREAM_SERVER_OPUSDECODER_H
#define OPUS_STREAM_SERVER_OPUSDECODER_H

#include <opus.h>
#include <string>

namespace yd {
    namespace audioprocess {
        class OpusDecoder {
        public:
            OpusDecoder();

            ~OpusDecoder();

            void Decode(const std::string &data, std::string *pcm);

        private:
            ::OpusDecoder *m_decoder;
        };
    }
}


#endif //OPUS_STREAM_SERVER_OPUSDECODER_H
